#!/usr/bin/env bash
if [ -z "$npmCache" ]; then
  echo "A is not set"
else
  echo "A is set to '$A'"
fi

npmCache=$(npm config get cache)
yarn=$(yarn cache dir)
yarnCache=$(dirname $yarn)
if [ "$(npm config get store-dir)" = "undefined" ]; then
  echo "The value is undefined"
else
  pnpmCache=$(npm config get store-dir)
fi
echo $npmCache $yarnCache $pnpmCache
